package com.tn.wservice;

import java.util.Map;
import java.util.Set;

import javax.xml.namespace.QName;

public class WebServiceRegistrationService {
	Map<String, IYSNWebService> registry;

	public Map<String, IYSNWebService> getRegistry() {
		return registry;
	}

	public void setRegistry(Map<String, IYSNWebService> registry) {
		this.registry = registry;

		Set<String> keySet = this.registry.keySet();
		for (String key : keySet) {
			SOAPHandler.getInstance().registerService(
					new QName(SOAPHandler.NAMESPACE_URI, key),
					this.registry.get(key));
		}
	}
}
